<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/8/29 10:41
 * Modified Time: 2019/8/29 10:41
 * Version: 2.0
 */

namespace App\Modules\Inventory\Validators;


class GoodsCategoryControllerValidator
{
    public static function validator()
    {
        return [
            'createGoodsCategory' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'parent_id' => [
                    'title' => '父级id',
                    'rule' => 'required',
                    'message' => []
                ],
            ],
            'editGoodsCategory' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'category_id' => [
                    'title' => '分类id',
                    'rule' => 'required',
                    'message' => []
                ],
            ],
            'delGoodsCategory' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'category_id' => [
                    'title' => '分类id',
                    'rule' => 'required',
                    'message' => []
                ],
            ],
            'getGoodsCategoryList' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'type' => [
                    'title' => '分类类型',
                    'rule' => 'required',
                    'message' => []
                ]
            ]
        ];
    }
}